package com.example.myapplication.mienum;

import com.example.myapplication.R;

public enum WeatherType {
    SUN(R.mipmap.sun),
    CLOUD(R.mipmap.cloud),
    RAIN(R.mipmap.rain);
    private int chineseName;

    // 构造方法
    WeatherType(int chineseName) {
        this.chineseName = chineseName;
    }

    // 自定义方法
    public int getChineseName() {
        return chineseName;
    }
}
